package com.thinkfit.jy.activity;

import android.content.Context;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.common.lib.bean.VideoListBean;
import com.thinkfit.jy.R;
import com.thinkfit.jy.bean.TestBean;
import com.thinkfit.jy.utils.ImageLoadUtils;

import org.jetbrains.annotations.NotNull;

public class TestAdapter extends BaseQuickAdapter<TestBean, BaseViewHolder> {

    private Context mContext;

    public TestAdapter(Context context) {
        super(R.layout.item_test_item);
        mContext = context;
    }


    @Override
    protected void convert(@NotNull BaseViewHolder helper, TestBean bean) {
        TextView tvToast = helper.getView(R.id.tv_toast);
        View v1 = helper.getView(R.id.v1);
        tvToast.setText(bean.getItem()+"");
        v1.setVisibility(View.GONE);
        if(bean.isCheck()){
            v1.setVisibility(View.VISIBLE);
        }

    }


}
